<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>

</body>
<script>
  var myMath = {
    PI: 3.14,
    max: function () {
      var max = 0;
      for(var i = 0; i < arguments.length; i++){
        max = max > arguments[i]? max: arguments[i];
      }
      return max;
    },
    min: function () {
      var min = 100000;
      for(var i = 0; i < arguments.length; i++){
        min = min < arguments[i]? min: arguments[i];
      }
      return min;
    }
  }

  console.log(myMath.PI);
  console.log(myMath.max(1, 2, 3, 4, 5, 7));
  console.log(myMath.min(1, 2, 3, 4, 5, 7));
</script>
</html>